  <div id="m-home-sidebar">
  	
		<div id="m-sidebar">
		  	<a href="{{URL::to('/')}}"><img src="{{URL::to('assets/i/'.$style['logo'])}}" alt="蔓茂花廊" class="m-logo"></img></a>
		    <ul class="am-list am-list-static">
		      <li class="m-parent"><span><a href="{{URL::to('/stories')}}" style="color:{{$style['category']}};">The Stories</a></span></li>
		      @foreach ($projects as $pp)
		      <li class="m-parent">
		      	@if(count($pp->children) > 0)
			      	<span class="am-cf" data-am-collapse="{target: '#project-{{$pp->id}}'}">
			      		<span style="color:{{$style['category']}};">{{$pp->name}}</span> 
			        </span>
			        <ul class="am-list am-collapse m-sidebar-sub" id="project-{{$pp->id}}">
			           @foreach ($pp->children as $child)
			           <li><a href="{{$child->url}}" class="{{!empty($storyId) && $storyId == $child->id ? 'active' : ''}}" style="color:{{$style['category']}};">{{$child->name}}</a></li>
			           @endforeach
			        </ul>
		      	@else
		      		<span><a href="{{$pp->url}}" style="color:{{$style['category']}};">{{$pp->name}}</a></span>
		      	@endif
		      </li>
		      @endforeach
		      <!-- 
		      <li class="m-parent"><span><a href="{{URL::to('/product-list')}}" style="color:{{$style['category']}};">所有商品</a></span></li>
		      -->
		      @foreach ($tree as $parent)
		      <li class="m-parent">
		      	<span><a href="{{URL::to('/product-list',$parent->id)}}" style="color:{{$style['category']}};">{{$parent->name}}</a></span>
		      </li>
		      @endforeach
		    </ul>
		  </div>
  	</div>
